<?php
$info = new \dato\info();
?>
<button class="botonAddDato">Agregar Dato</button>
<table width=600 align=center id="tblDatos">
    <thead>
    <tr>
        <th>&nbsp;</th>
        <th>Dato</th>
        <th>Valor</th>
    </tr>
    </thead>
    <tbody>
    <?php
    $aInfo = $info->getInfo();
    if (count($aInfo)>0){
        foreach ($info->getInfo() as $k => $v) {
            ?>
            <tr id="tr_<?=$v->getId();?>">
                <td width=100>
                    <button class="botonEditDato" id="<?=$v->getId();?>">Editar</button>
                    <button class="botonDeleteDato" id="<?=$v->getId();?>">Borrar</button>
                </td>
                <td width=250 class="col-nombre">
                    <?=$v->getNombre();?>
                </td>
                <td width=250 class="col-valor">
                    <?=$v->getValor();?>
                </td>
            </tr>
    <?php }
    }?>
    </tbody>
</table>

